package com.itheima.jihe;
public enum Gender {

    MALE(0, "男"),
    FEMALE(1, "女");

    private int num;
    private String sex;

    Gender() {
    }

    Gender(int num, String sex) {
        this.num = num;
        this.sex = sex;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}

